package tw.com.diary.db.domain;

public class X0001 {
	private String uuid;
	private String yyyymmdd;
	private String content;
	private String weather;

	public String getWeather() {
		return weather;
	}

	public void setWeather(String weather) {
		this.weather = weather;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getYyyymmdd() {
		return yyyymmdd;
	}

	public void setYyyymmdd(String yyyymmdd) {
		this.yyyymmdd = yyyymmdd;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return this.yyyymmdd + ":" + content;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof X0001) {
			return ((X0001) o).getYyyymmdd().equals(this.yyyymmdd);
		}

		// TODO Auto-generated method stub
		return super.equals(o);
	}
}
